<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="css/reset.css" rel="stylesheet" type="text/css" />
<link href="css/gird.css" rel="stylesheet" type="text/css" />
<link href="css/iehack.css" rel="stylesheet" type="text/css" />
<link href="css/header.css" rel="stylesheet" type="text/css" />
<link href="css/usercenter.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="../js/area.js"></script>
<script src="../js/jquery_last.js" type="text/javascript"></script>
<link type="text/css" rel="stylesheet" href="../js/style/validator.css"></link>
<script src="../js/formValidator.js" type="text/javascript" charset="UTF-8"></script>
<script src="../js/formValidatorRegex.js" type="text/javascript" charset="UTF-8"></script>
<script language="javascript" src="../js/DateTimeMask.js" type="text/javascript"></script>
<script defer="defer" src="../js/datepicker/WdatePicker.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
	$.formValidator.initConfig({formid:"form1",onerror:function(msg){alert(msg)},onsuccess:function(){return true;}});
	
	
	$("#user_realname").formValidator({onshow:"请输入姓名",onfocus:"请输入姓名",oncorrect:"姓名合法"}).inputValidator({min:1,empty:{leftempty:false,rightempty:false,emptyerror:"姓名两边不能有空符号"},onerror:"姓名不能为空,请确认"});
	$("#com_address").formValidator({onshow:"请输入详细地址",onfocus:"请详细填写贵公司经营地址。如：红岭中路南国大厦1栋8层。",oncorrect:"详细地址合法"}).inputValidator({min:1,empty:{leftempty:false,rightempty:false,emptyerror:"详细地址两边不能有空符号"},onerror:"详细地址不能为空,请确认"});
	$("#user_zip").formValidator({forcevalid:true,triggerevent:"change",onshow:"请输入邮政编码",onfocus:"只能输入0-9之间的数字",oncorrect:"恭喜你,你输对了"}).inputValidator({min:100000,max:999999,type:"value",onerrormin:"请输入邮政编码",onerror:"只能输入0-9之间的数字，请确认"});//.defaultPassed();
	$("#user_birthday").focus(function(){WdatePicker({skin:'whyGreen',oncleared:function(){$(this).blur();},onpicked:function(){$(this).blur();}})}).formValidator({onshow:"请输入的出生日期",onfocus:"请输入的出生日期",oncorrect:"你输入的日期合法"}).inputValidator({min:"1900-01-01",max:"2099-01-01",type:"date",onerror:"日期必须在\"1900-01-01\"和\"2099-01-01\"之间"});//.defaultPassed();
	$("#user_cardnum").formValidator({onshow:"请输入15或18位的身份证",onfocus:"输入15或18位的身份证",oncorrect:"输入正确"}).functionValidator({fun:isCardID});
	$("#user_party").formValidator({onshow:"请输入党派",onfocus:"请输入党派",oncorrect:"党派合法"}).inputValidator({min:1,empty:{leftempty:false,rightempty:false,emptyerror:"党派两边不能有空符号"},onerror:"党派不能为空,请确认"});
	$("#user_leveltitle").formValidator({onshow:"请输入职称",onfocus:"请输入职称",oncorrect:"职称合法"}).inputValidator({min:1,empty:{leftempty:false,rightempty:false,emptyerror:"职称两边不能有空符号"},onerror:"职称不能为空,请确认"});
	
	
	$("#user_expertise").formValidator({onshow:"请输入您的专长",onfocus:"请输入您的专长",oncorrect:"专长合法"}).inputValidator({min:1,empty:{leftempty:false,rightempty:false,emptyerror:"专长两边不能有空符号"},onerror:"专长不能为空,请确认"});
	$("#user_workplace").formValidator({onshow:"请输入您的工作单位",onfocus:"请输入您的工作单位",oncorrect:"您的工作单位合法"}).inputValidator({min:1,empty:{leftempty:false,rightempty:false,emptyerror:"您的工作单位两边不能有空符号"},onerror:"您的工作单位不能为空,请确认"});
	$("#user_duty").formValidator({onshow:"请输入您的职务",onfocus:"请输入您的职务",oncorrect:"您的职务合法"}).inputValidator({min:1,empty:{leftempty:false,rightempty:false,emptyerror:"您的职务两边不能有空符号"},onerror:"您的职务不能为空,请确认"});
	$("#user_address").formValidator({onshow:"请输入通信地址",onfocus:"请输入通信地址",oncorrect:"通信地址合法"}).inputValidator({min:1,empty:{leftempty:false,rightempty:false,emptyerror:"通信地址两边不能有空符号"},onerror:"通信地址不能为空,请确认"});
	$("#user_homeaddress").formValidator({onshow:"请输入家庭地址",onfocus:"请输入家庭地址",oncorrect:"家庭地址合法"}).inputValidator({min:1,empty:{leftempty:false,rightempty:false,emptyerror:"家庭地址两边不能有空符号"},onerror:"家庭地址不能为空,请确认"});
	$("#user_mobile").formValidator({onshow:"请输入你的手机号码",onfocus:"请输入你的手机号码",oncorrect:"谢谢你的合作",onempty:"你真的不想留手机号码啊？"}).inputValidator({min:11,max:11,onerror:"手机号码必须是11位的,请确认"}).regexValidator({regexp:"mobile",datatype:"enum",onerror:"你输入的手机号码格式不正确"});;
	$("#user_tel").formValidator({onshow:"请输入你的联系电话",onfocus:"格式例如：0577-88888888",oncorrect:"谢谢你的合作",onempty:"你真的不想留联系电话了吗？"}).regexValidator({regexp:"^[[0-9]{3}-|\[0-9]{4}-]?([0-9]{8}|[0-9]{7})?$",onerror:"你输入的联系电话格式不正确"});
	$("#user_mail").formValidator({onshow:"请输入邮箱",onfocus:"邮箱6-100个字符,输入正确了才能离开焦点",oncorrect:"恭喜你,你输对了",forcevalid:true}).inputValidator({min:6,max:100,onerror:"你输入的邮箱长度非法,请确认"}).regexValidator({regexp:"^([\\w-.]+)@(([[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.)|(([\\w-]+.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(]?)$",onerror:"你输入的邮箱格式不正确"});
	$("#user_resume").formValidator({onshow:"请输入你的简历",onfocus:"描述至少要输入10个汉字或20个字符",oncorrect:"恭喜你,你输对了",defaultvalue:"这家伙很懒，什么都没有留下。"}).inputValidator({min:20,onerror:"你输入的描述长度不正确,请确认"});
	$("#user_patents").formValidator({onshow:"请输入你的专利或者是获奖情况",onfocus:"描述至少要输入10个汉字或20个字符",oncorrect:"恭喜你,你输对了",defaultvalue:"这家伙很懒，什么都没有留下。"}).inputValidator({min:20,onerror:"你输入的描述长度不正确,请确认"});
	$("#province").formValidator({}).inputValidator({min:1,onerror: "请选择籍贯!"});
	
	
	
	
});

</script>
<script type="text/javascript">
function getCheckboxValue(checkbox)
{
	if (!checkbox.length && checkbox.type.toLowerCase() == 'checkbox') 
	{ return (checkbox.checked)?checkbox.value:''; }
	
	if (checkbox[0].tagName.toLowerCase() != 'input' || 
		checkbox[0].type.toLowerCase() != 'checkbox')
	{ return ''; }

	var val = [];
	var len = checkbox.length;
	for(i=0; i<len; i++)
	{
		if (checkbox[i].checked)
		{
			val[val.length] = checkbox[i].value;
		}
	}
	return (val.length)?val:'';
}

</script>
</head>

<body onload="setup()">
<div class="page">
  <jsp:include page="inc/header.jsp" />
  <div class="content">
    <div class="gird-s5c19">
      <div class="col-main">
        <h2>会员信息修改</h2>
        <ol class="progress step2">
          <li><a href="../user/webUserEdit.action"> 1.网站基本信息</a></li>
          
          <li class="on"><a href="../user/getPerUserView.action">2.高级会员信息</a></li>
        
          <s:if test="webUser.user_level==2">
          <li><a href="../user/getComUserView1.action?state=edit">3.企业会员信息</a></li>
          </s:if>
        </ol>
        <h3>修改高级会员基本信息：<s:if test="tips==1"><font color="red"> 您不是高级会员，请先申请成为高级会员</font> </s:if> </h3>
        <div class="input">
        
          <form name="form1" id="form1" action="../user/EditPerUser.action" method="post">
            <s:token/>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <th width="120">姓名：</th>
                <td width="200"><input id="user_realname" name="personalUser.user_realname" type="text" value="<s:property value="personalUser.user_realname"/>"/></td>
                <td><div id="user_realnameTip"></div> </td>
              </tr>
              <tr>
                <th>性别：</th>
                <td>
                	<select id="user_sex" name="personalUser.user_sex">
                		<option value="男">男</option>
                		<option value="女">女</option>
                	</select>
                </td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <th>出生年月：</th>
                <td>
					<input type="text" id="user_birthday" name="personalUser.user_birthday" value="<s:property value="personalUser.user_birthday"/>"/>
				</td>
                <td><div id="user_birthdayTip"></div> </td>
              </tr>
              <tr>
                <th>身份证号码：</th>
                <td><input name="personalUser.user_cardnum" type="text" id="user_cardnum"  value="<s:property value="personalUser.user_cardnum"/>"/></td>
                <td><div id="user_cardnumTip"></div></td>
              </tr>
              <tr>
                <th>学历：</th>
                <td>
					<select name="personalUser.user_education">
						<option value="中学">中学</option>
						<option value="大专">大专</option>
						<option value="本科">本科</option>
						<option value="硕士">硕士</option>
						<option value="博士">博士</option>
						<option value="博士后">博士后</option>
					</select>
				</td>
                <td><div id="com_zipTip"></div></td>
              </tr>
              <tr>
                <th>籍贯：</th>
                <td>
                	<select id="province" name="personalUser.user_province"></select>
					<select id="city" name="personalUser.user_city"></select>
					<!--<select id="county" name="personalUser.user_county"></select>-->
                </td>
                <td><div id="provinceTip"></div></td>
              </tr>
              <tr>
                <th>民族：</th>
                <td><select name="personalUser.user_national" id="personalUser.user_national" style="width:150px;">
						<option value="1">汉族</option>
						<option value="2">蒙古族</option>
						<option value="3">彝族</option>
						<option value="4">侗族</option>
						<option value="5">哈萨克族</option>
						<option value="6">畲族</option>
						<option value="7">纳西族</option>
						<option value="8">仫佬族</option>
						<option value="9">仡佬族</option>
						<option value="10">怒族</option>
						<option value="11">保安族</option>
						<option value="12">鄂伦春族</option>
						<option value="13">回族</option>
						<option value="14">壮族</option>
						<option value="15">瑶族</option>
						<option value="16">傣族</option>
						<option value="17">高山族</option>
						<option value="18">景颇族</option>
						<option value="19">羌族</option>
						<option value="20">锡伯族</option>
						<option value="21">乌孜别克族</option>
						<option value="22">裕固族</option>
						<option value="23">赫哲族</option>
						<option value="24">藏族</option>
						<option value="25">布依族</option>
						<option value="26">白族</option>
						<option value="27">黎族</option>
						<option value="28">拉祜族</option>
						<option value="29">柯尔克孜族</option>
						<option value="30">布朗族</option>
						<option value="31">阿昌族</option>
						<option value="32">俄罗斯族</option>
						<option value="33">京族</option>
						<option value="34">门巴族</option>
						<option value="35">维吾尔族</option>
						<option value="36">朝鲜族</option>
						<option value="37">土家族</option>
						<option value="38">傈僳族</option>
						<option value="39">水族</option>
						<option value="40">土族</option>
						<option value="41">撒拉族</option>
						<option value="42">普米族</option>
						<option value="43">鄂温克族</option>
						<option value="44">塔塔尔族</option>
						<option value="45">珞巴族</option>
						<option value="46">苗族</option>
						<option value="47">满族</option>
						<option value="48">哈尼族</option>
						<option value="49">佤族</option>
						<option value="50">东乡族</option>
						<option value="51">达斡尔族</option>
						<option value="52">毛南族</option>
						<option value="53">塔吉克族</option>
						<option value="54">德昂族</option>
						<option value="55">独龙族</option>
						<option value="56">基诺族</option>
						</select>
</td>
                <td><div id="com_levelTip"></div></td>
              </tr>
              <tr>
                <th>党派：</th>
                <td><input name="personalUser.user_party" type="text" id="user_party" value="<s:property value="personalUser.user_party"/>"/></td>
                <td><div id="user_partyTip"></div></td>
              </tr>
              <tr>
                <th>职称：</th>
                <td><input name="personalUser.user_leveltitle" type="text" id="user_leveltitle" value="<s:property value="personalUser.user_leveltitle"/>"/></td>
                <td><div id="user_leveltitleTip"></div> </td>
              </tr>
              
              <tr>
                <th>懂何外文：</th>
                <td>
					<input type="checkbox" name="personalUser.user_english" id="pp0" style="width: 12px;height: 15px" value="1"/>英语
					<input type="checkbox" name="personalUser.user_english" id="pp1" style="width: 12px;height: 15px" value="2"/>日语
					<input type="checkbox" name="personalUser.user_english" id="pp2" style="width: 12px;height: 15px" value="3"/>法语
					<input type="checkbox" name="personalUser.user_english" id="pp3" style="width: 12px;height: 15px" value="4"/>德语
					<input type="checkbox" name="personalUser.user_english" id="pp4" style="width: 12px;height: 15px" value="5"/>俄语</br>
					<input type="checkbox" name="personalUser.user_english" id="pp5" style="width: 12px;height: 15px" value="6"/>西班牙语
					<input type="checkbox" name="personalUser.user_english" id="pp6" style="width: 12px;height: 15px" value="7"/>朝鲜语
					<input type="checkbox" name="personalUser.user_english" id="pp7" style="width: 12px;height: 15px" value="8"/>阿拉伯语
					<input type="checkbox" name="personalUser.user_english" id="pp8" style="width: 12px;height: 15px" value="9"/>其他
				</td>
                <td><div id="user_englishTip"></div> </td>
              </tr>
              <tr>
                <th>专长：</th>
                <td><input name="personalUser.user_expertise" type="text" id="user_expertise" value="<s:property value="personalUser.user_expertise"/>"/></td>
                <td><div id="user_expertiseTip"></div> </td>
              </tr>
              <tr>
                <th>工作单位：</th>
                <td><input name="personalUser.user_workplace" type="text" id="user_workplace" value="<s:property value="personalUser.user_workplace"/>"/></td>
                <td><div id="user_workplaceTip"></div> </td>
              </tr>
              <tr>
                <th>职务：</th>
                <td><input name="personalUser.user_duty" type="text" id="user_duty" value="<s:property value="personalUser.user_duty"/>"/></td>
                <td><div id="user_dutyTip"></div> </td>
              </tr>
              <tr>
                <th>通信地址：</th>
                <td><input name="personalUser.user_address" type="text" id="user_address" value="<s:property value="personalUser.user_address"/>"/></td>
                <td><div id="user_addressTip"></div> </td>
              </tr>
              <tr>
                <th>邮编：</th>
                <td><input name="personalUser.user_zip" type="text" id="user_zip" value="<s:property value="personalUser.user_zip"/>"/></td>
                <td><div id="user_zipTip"></div> </td>
              </tr>
              <tr>
                <th>家庭地址：</th>
                <td><input name="personalUser.user_homeaddress" type="text" id="user_homeaddress" value="<s:property value="personalUser.user_homeaddress"/>"/></td>
                <td><div id="user_homeaddressTip"></div> </td>
              </tr>
              <tr>
                <th>联系电话：</th>
                <td><input name="personalUser.user_tel" type="text" id="user_tel" value="<s:property value="personalUser.user_tel"/>"/></td>
                <td><div id="user_telTip"></div> </td>
              </tr>
              <tr>
                <th>手机：</th>
                <td><input name="personalUser.user_mobile" type="text" id="user_mobile" value="<s:property value="personalUser.user_mobile"/>"/></td>
                <td><div id="user_mobileTip"></div> </td>
              </tr>
              <tr>
                <th>邮箱：</th>
                <td><input name="personalUser.user_mail" type="text" id="user_mail" value="<s:property value="personalUser.user_mail"/>"/></td>
                <td><div id="user_mailTip"></div> </td>
              </tr>
              <tr>
                <th>工作简历：</th>
                <td><textarea id="user_resume" name="personalUser.user_resume" cols="50" rows="10"><s:property value="personalUser.user_resume"/></textarea></td>
                <td></td>
              </tr>
              <tr>
              	 <th></th> 
			     <td colspan="2"><div id="user_resumeTip" style="width:250px"></div></td>
			  </tr>
              <tr>
                <th>专利成果和获奖情况：</th>
                <td><textarea id="user_patents" name="personalUser.user_patents" cols="50" rows="10"><s:property value="personalUser.personalUser.user_patents"/></textarea></td>
                <td></td>
              </tr>
              
              <tr> 
             	 <th></th> 
			     <td colspan="2"><div id="user_patentsTip" style="width:250px"></div></td>
			  </tr>
              
            </table>
        </div>
        <div class="btn"><s:if test="tips!=1"><button type="submit" class="next" onclick="getCheckboxValue(this.form.elements['user_english'])">提交</button></s:if></div>
     </form>
    
      </div>
      <div class="col-sub">
        <div class="box">
          <div class="box-tp"></div>
          <div class="box-main">
            <h2>用户中心</h2>
            <ul>
              <li><a href="../user/getComRegState.action">申请企业会员</a></li>
              <li><a href="../user/webUserEdit.action">资料修改</a></li>
              <li><a href="../note/getNoteListByUser.action">我的消息</a></li>
              <li><a href="#">我要投稿</a></li>
              <li><a href="../user/UserLoginOut.action">退出</a></li>
            </ul>
          </div>
          <div class="box-bt"></div>
        </div>
      </div>
    </div>
  </div>
  <div class="footer"></div>
</div>
</body>
</html>
<!--js初始化函数-->
			<SCRIPT language="javascript">
			setup()
			</SCRIPT>
